package com.viaje.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.viaje.model.User;

@Entity
@Table(name="t_user")
public class User {
	@Id
	@Column(length=40)
	private String account;
	@Column(length=40)
	private String password;
	@Column(length=40)
	private String nickname;
	
	@OneToOne
	@JoinColumn(name="idUsuario")
	private Usuario usuario;
	
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	
}
